package com.web.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.web.manager.pojo.Court;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CourtMapper  extends BaseMapper<Court> {

    @Select("select count(*) from major where belong = #{belong}")
    Integer selectType(String belong);

    @Select("select * from court where name = #{name}")
    Court selectType2(String name);
}
